#include <stdio.h>

int arr[100]={};

int pull(int n){
	int i = 0;
	arr[i] = n;
	i++;
}

int push(){
	int res,j;
	for(j=sizeof(arr)/sizeof(arr[0]);j >= 0;j--){
		res = arr[j];
		printf("%d \n",res);
	}
}

int main(){
	printf("请输入多个数字！\n");
	for(;;){
		int x;
		if(x == -1) break;
		scanf("%d",&x);
		pull(x);
	}
	push();
	return 0;
}
